import requests from '../config/request.js'

//获取vip列表
export const getVipLevelInfoList = (payload) => {
    return requests.httpRequest({
        url: "Vip/GetVipLevelInfoList",
        data:payload
    });
};

export const getVipLevelDetailInfo = (payload) => {
    return requests.httpRequest({
        url: "Vip/GetVipLevelDetailInfo",
        data:payload
    });
};

export const submitVipOrder = (payload) => {
    return requests.httpTokenRequestSpecial({
        url: "Vip/SubmitVipOrder",
        data:payload
    });
};

// export const cancelVipOrder = (payload) => {
//     return requests.httpTokenRequest({
//         url: "Vip/CancelVipOrder",
//         data:payload
//     });
// };


export const getMyVipOrderList = (payload) => {
    return requests.httpTokenRequest({
        url: "Vip/GetMyVipOrderList",
        data:payload
    });
};


// *****************************************新接口
export const vipOrderList = (payload) => {
	 console.log(payload,'this.payload')
    return requests.requestAll("/client/vipLevel/vipOrderList",'post',payload,false);
};

export const cancelVipOrder = (payload) => {
  return requests.requestAll("/client/pay/orderCancel",'post',payload,false);
  };
